Download this file

20 lines (16 with data), 413 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
#!/usr/local/bin/Rscript
# generate dataset with certain seed
set.seed(1)
data <- dyntoy::generate_dataset(
id = "specific_example/paga",
num_cells = 99,
num_features = 101,
model = "tree",
normalise = FALSE
)
# add method specific args (if needed)
data$parameters <- list()
data$seed <- 1L
# write example dataset to file
file <- commandArgs(trailingOnly = TRUE)[[1]]
dynutils::write_h5(data, file)